//
//  ScoreViewController.h
//  Quiz
//
//  Created by AnhLH-Oriolus on 31/07/2011.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "OwnScoreView.h"
#import "MultiplayerScoreView.h"
#import "FMDatabase.h"
#import "FontLabel.h"

#define top10   10
#define top100	100

@interface ScoreViewController : UIViewController {
	OwnScoreView *ownScore;
	OwnScoreView *multiPlayerScore;
	NSMutableArray *arrOwnPlayer;
	NSMutableArray *arrOwnScore;
	NSMutableArray *arrMulPlayer;
	NSMutableArray *arrMulScore;
	
	UIButton *btnUpdateScore;
	FMDatabase* db;
	
	NSString *player;
	int iScore;
}

-(BOOL)openDb;
-(void)loadData;
-(void)closeDb;
-(void)loadViewWithMode:(int)mode;
-(void)willUpdateWithPlayer:(NSString *)playerName andScore:(int)score;
-(void)updateMulScore;
@end
